package io.renren.modules.avanotes.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 复习计划表
 *
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-27 21:55:28
 */
@Data
@TableName("review_schedule")
public class ReviewScheduleEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    public static String CN_ID = "id";
    public static String CN_SCHEDULE_ID = "schedule_id";
    public static String CN_SPECIAL_ID = "special_id";
    public static String CN_REVIEW_LEVEL = "review_level";
    public static String CN_GRADE = "grade";
    public static String CN_DAY = "day";
    public static String CN_STATUS = "status";
    public static String CN_CREATE_USER_ID = "create_user_id";
    public static String CN_CREATE_TIME = "create_time";

    /**
     * 复习id
     */
    @TableId
    private Long id;
    /**
     * 计划id
     */
    private Long scheduleId;
    /**
     * 专题id（实际还是以专题为单位）
     */
    private Integer specialId;
    /**
     * 复习完成度（0-没复习；1-小部分复习；2-大部分复习；3-完成复习）
     */
    private Integer reviewLevel;
    /**
     * 复习评分
     */
    private Integer grade;
    /**
     * 复习执行日期
     */
    private Integer day;
    /**
     * 状态（0-未复习，1-已经复习）
     */
    private Integer status;
    /**
     * 复习用户id
     */
    private Long createUserId;
    /**
     * 创建时间
     */
    private Date createTime;

    public ReviewScheduleEntity() {
    }

    /**
     * 用于自动生成
     *
     * @param scheduleId
     * @param specialId
     * @param createUserId
     */
    public ReviewScheduleEntity(Long scheduleId, Integer specialId, Long createUserId, Integer day) {
        this.scheduleId = scheduleId;
        this.specialId = specialId;
        this.createUserId = createUserId;
        this.day = day;
        this.status = 0;
    }
}
